Sending SCCM Task Sequence Notifications to Teams
2021, Mar 26
Quick blog post on how to send a notification about your Task Sequence to a teams channel, useful if you want to keep an eye on certain task sequences as a whole or just parts of the sequence.
- Head over to msendpointmgr and get a copy of the MicrosoftTeams-OSD-Successful-v0.4.ps1 (msendpointmgr)
- Edit the Powershell and add your uri from teams webhook and save.
- Edit the task sequence you wish to setup notifications from
- Click Add - General - "Run PowerShell Script"
- Click the "Enter PowerShell Script" button and click "Add Script"
- Click the "Open" button
- Navigate to the location of the PowerShell Script and click Open
- This has copied the the powershell script to the task sequence if need to make a edit click the edit box in bottom left hand corner and click "OK" to close the window
- You will now be back at the properties window, You can now set other options such as Parameters/Output to task sequence/start in etc... for testing set the "PowerShell execution policy" to "bypass" and click "OK"
- Now when you run your task sequence when the script is run you will now receive notification in teams.